import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
// import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'ic:baseline-view-in-ar',
      keepAlive: true,
      order: 2,
      title: '货源市场',
    },
    name: 'GetGoods',
    path: '/getgoods',
    children: [
      {
        meta: {
          title: '1688数据采集中心',
        },
        name: '1688Air',
        path: '/getgoods/1688-air',
        component: () => import('#/views/getgoods/1688air/index.vue'),
      },
      {
        meta: {
          title: '1688严选货源',
        },
        name: '1688StrictSelection',
        path: '/getgoods/1688-strict-selection',
        component: () => import('#/views/getgoods/1688ss/index.vue'),
      },
      {
        meta: {
          title: '链接铺货',
        },
        name: 'uselinktosell',
        path: '/getgoods/uselinktosell',
        component: () => import('#/views/getgoods/uselinktosell/index.vue'),
      },
    ],
  },
];

export default routes;
